﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
using System.Data.SqlClient;
using System.Data.Common;


namespace DbSetupCreator
{
    public partial class FormMain : Form
    {
        public FormMain()
        {
            InitializeComponent();
        }

        private void FormMain_Load(object sender, EventArgs e)
        {

        }

        private void btnAction_Click(object sender, EventArgs e)
        {
            //TODO:Implement
        }

        private void rbDatabaseScriptTool_CheckedChanged(object sender, EventArgs e)
        {
            if (rbDatabaseScriptTool.Checked == true)
            {
                rtbDisplayText.Text = "This will open the MS SQL Database Script tool.\r\n" +
                    "\r\nThe Database Script Tool is designed to help users create their " +
                    "database CRUD scripts for each table. This also includes inserting the ." +
                    "appropriate replaceable script items for users.";
            }
        }

        private void rbXMLConfigurationTool_CheckedChanged(object sender, EventArgs e)
        {
            if (rbXMLConfigurationTool.Checked == true)
            {
                rtbDisplayText.Text = "This will open the XML configuration tool.\r\n" +
                    "\r\nThe XML configuration tool has been designed to help newer " +
                    "users configure the XML for the DBSetupHelper correctly.";
            }
        }

        private void rbExit_CheckedChanged(object sender, EventArgs e)
        {
            if (rbExit.Checked == true)
            {
                rtbDisplayText.Text = "Closes the application and exits the program. \r\n" +
                    "\r\nPlease note that all child windows will close.";
            }
        }
    }
}
